﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace EzyGoEzySystem.Models
{
    /// <summary>
    /// Consist of information about the bus schedule
    /// </summary>
    public class Route
    {
        #region Scalar Properties

        [Key]
        public int ID { get; set; }

        [Required]
        public int StartBusStopID { get; set; }

        [Required]
        public int EndBusStopID { get; set; }

        [Required]
        public int BusID { get; set; }

        [Required]
        public double DistanceCost { get; set; }

        #endregion

        #region Navigation Properties

        // foreign key
            
        public virtual BusStop StartBusStop { get; set; }
              
        public virtual BusStop EndBusStop { get; set; }

        public virtual Bus Bus { get; set; }

        #endregion
    }
}